package com.gxuwz.bignews.model.entity;

/**
 * 新闻关注实体类，对应关注表字段。
 */
public class NewsFavorite {
    /** 自增主键ID */
    private int id;
    /** 用户手机号 */
    private String phone;
    /** 新闻唯一ID */
    private String uniquekey;
    /** 新闻标题 */
    private String title;
    /** 新闻缩略图链接 */
    private String thumbnailPic;
    /** 新闻访问链接 */
    private String url;
    /** 关注时间（时间戳，毫秒） */
    private long time;

    public NewsFavorite() {}

    public NewsFavorite(int id, String phone, String uniquekey, String title, String thumbnailPic, String url, long time) {
        this.id = id;
        this.phone = phone;
        this.uniquekey = uniquekey;
        this.title = title;
        this.thumbnailPic = thumbnailPic;
        this.url = url;
        this.time = time;
    }

    public NewsFavorite(String phone, String uniquekey, String title, String thumbnailPic, String url, long time) {
        this.phone = phone;
        this.uniquekey = uniquekey;
        this.title = title;
        this.thumbnailPic = thumbnailPic;
        this.url = url;
        this.time = time;
    }

    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
    public String getUniquekey() { return uniquekey; }
    public void setUniquekey(String uniquekey) { this.uniquekey = uniquekey; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getThumbnailPic() { return thumbnailPic; }
    public void setThumbnailPic(String thumbnailPic) { this.thumbnailPic = thumbnailPic; }
    public String getUrl() { return url; }
    public void setUrl(String url) { this.url = url; }
    public long getTime() { return time; }
    public void setTime(long time) { this.time = time; }
} 